
** Applendix Table 2: Pre-trends instrument

use "$datadir\ewallet\maindata.dta", clear	
	keep if time_id == 35
	reghdfe  c_deposit201604_norm invshare_sd $controls if $filters, a(i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_2", tex(frag) keep(invshare_sd) ctitle("201604") dec(3) bracket label addtext(District Controls, $\checkmark$ ) nocons nonotes stats(coef se)  replace
	foreach num of numlist 201603 201602 201601 201504 201503 201502 201501 201404 201403 201402 201401 {
		local controls "c.l_preshockdeposit`num' c.s_status_atm c.s_status_commercialbank c.share_rural c.logpop_T"
		reghdfe  c_deposit`num'_norm invshare_sd $controls if $filters, a(i.time_id) cluster(district_id)
		outreg2 using "$outputdir_tab\Table_H_2", tex(frag) keep(invshare_sd) ctitle("`num'") dec(3) bracket label addtext(District Controls, $\checkmark$ ) nocons nonotes stats(coef se)  append
	}
	